/**   
 * @Title: NoticeWorkbench.java 
 * @Package com.betterjr.modules.notice.entity 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @author xuzx
 * @date 2017年11月24日 下午3:57:06  
 */
package com.betterjr.modules.notice.entity;

import com.betterjr.common.entity.BetterjrEntity;

/** 
 * @ClassName: NoticeWorkbench 
 * @Description: 工作台未读消息，未读公告 
 * @author xuzx
 * @date 2017年11月24日 下午3:57:06 
 *  
 */
public class NoticeWorkbench implements BetterjrEntity {
    /** 
     * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
     */
    private static final long serialVersionUID = 1L;
    /**
     * 未读消息id
     */
    private Long id;
    /**
     * 未读消息数量
     */
    private Long noticeCount;
    /**
     * 未读消息类型  00：无未读消息，01：有未读公告，02：有未读消息
     */
    private String noticeType;
    /**
     * 未读消息内容
     */
    private Object noticeContent;
    /**
     *未读消息标题
     */
    private String subject;

    public Long getId() {
        return id;
    }

    public void setId(final Long anId) {
        id = anId;
    }

    public Long getNoticeCount() {
        return noticeCount;
    }

    public void setNoticeCount(final Long anNoticeCount) {
        noticeCount = anNoticeCount;
    }

    public String getNoticeType() {
        return noticeType;
    }

    public void setNoticeType(final String anNoticeType) {
        noticeType = anNoticeType;
    }

    public Object getNoticeContent() {
        return noticeContent;
    }

    public void setNoticeContent(final Object anNoticeContent) {
        noticeContent = anNoticeContent;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(final String anSubject) {
        subject = anSubject;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (id == null ? 0 : id.hashCode());
        result = prime * result + (noticeContent == null ? 0 : noticeContent.hashCode());
        result = prime * result + (noticeCount == null ? 0 : noticeCount.hashCode());
        result = prime * result + (noticeType == null ? 0 : noticeType.hashCode());
        result = prime * result + (subject == null ? 0 : subject.hashCode());
        return result;
    }

    @Override
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (!(obj instanceof NoticeWorkbench)) {
            return false;
        }
        NoticeWorkbench other = (NoticeWorkbench) obj;
        if (id == null) {
            if (other.id != null) {
                return false;
            }
        } else if (!id.equals(other.id)) {
            return false;
        }
        if (noticeContent == null) {
            if (other.noticeContent != null) {
                return false;
            }
        } else if (!noticeContent.equals(other.noticeContent)) {
            return false;
        }
        if (noticeCount == null) {
            if (other.noticeCount != null) {
                return false;
            }
        } else if (!noticeCount.equals(other.noticeCount)) {
            return false;
        }
        if (noticeType == null) {
            if (other.noticeType != null) {
                return false;
            }
        } else if (!noticeType.equals(other.noticeType)) {
            return false;
        }
        if (subject == null) {
            if (other.subject != null) {
                return false;
            }
        } else if (!subject.equals(other.subject)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "NoticeWorkbench [id=" + id + ", noticeCount=" + noticeCount + ", noticeType=" + noticeType
                + ", noticeContent=" + noticeContent + ", subject=" + subject + "]";
    }

}
